<template>
	<div class="home_h">
		 <header class="m_header">
                <div class="m_header_box" id="my_search">
                    <!--<a href="#" class="icon_logo"></a>-->
                    <!--<form action="javascript:void(0)">
                        <span @click="goSearch()" class="icon_search"></span>
                        <input v-model="searchVal" type="search" class="search" placeholder="点击搜索" >
                    </form>-->
                    <!--<router-link to="/login" class="logo_btn">登录</router-link>-->
                </div>
            </header>
	</div>
</template>
<script>
    export default{
    	data() {
    		return {
    			searchVal: ''
    		}
    	},
        methods:{
            goSearch(event){
            	let _this = this
                this.$router.push({path: '/searchPage', query: {searchVal: _this.searchVal}});
//              window.event? window.event.returnValue = false : event.preventDefault();
            }
        }
    }
</script>